import axios from '../utils/utils'

//添加分类
export const addcate = (params) => axios.post('/goods/addcate', params)

//获取分类
export const catelist = (params) => axios.get('/goods/catelist', { params })

//修改分类
export const editcate = (params) => axios.post('/goods/editcate', params)

//删除分类
export const delcate = (params) => axios.get('/goods/delcate', { params })

//查询所有分类
export const categories = () => axios.get('/goods/categories')

//获取商品列表
export const goodsList = (params) => axios.get('/goods/list', { params })

//删除商品
export const delList = (params) => axios.get('/goods/del', { params })

//添加商品
export const add = (params) => axios.post('/goods/add', params)

//修改商品
export const goodsEdit = (params) => axios.post('/goods/edit', params)




